package com.bauer.base.concurrent;

/**
 * @Author ：rui.wei
 * @Date ：Created in 11:17 2019/4/24
 * @Description：
 */
public class DemoRunnable implements Runnable {

    private String name;

    private long sleepTime;

    public DemoRunnable(String name, long sleepTime) {
        this.name = name;
        this.sleepTime = sleepTime;
    }

    @Override
    public void run() {
        System.out.println("thread "+ name);
        try {
            Thread.sleep(sleepTime);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
